import App from './App'

// #ifndef VUE3
import Vue from 'vue'
import './uni.promisify.adaptor'
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
	...App
})
app.$mount()
// #endif

// #ifdef VUE3
import {
	createSSRApp
} from 'vue'
import {
	createPinia
} from 'pinia'
// 引入vant
import vant from 'vant';
import 'vant/lib/index.css';
import 'vant/es/toast/style';

// 导入封装的请求对象
import http from '@/util/request.js'
const app = createSSRApp(App)
const pinia = createPinia()
app.use(pinia)
app.use(vant)
app.config.globalProperties.$http = http
export function createApp() {

	return {
		app,
		pinia
	}
}
// #endif